package com.example.service.impl;

import com.example.mapper.PerInformationMapper;
import com.example.pojo.ResponseVo;
import com.example.service.PerInformationService;
import com.example.util.SecurityUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class PerInformationServiceImpl implements PerInformationService {
    @Autowired
    private PerInformationMapper perInformationMapper;
    @Override
    public ResponseVo getPerInfo() {
        String username = SecurityUtil.getUsername();
       Map map= perInformationMapper.getPerInfo(username);
        return ResponseVo.success(map);
    }
}
